<style type="text/css">@import url(./font/css/font-awesome.css);</style>
<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php /*	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />*/?>
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/font/css/font-awesome.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/font/css/font-awesome.min.css" />
	<?php echo CHtml::cssFile("css/sty.css")?>
	<?php
        Yii::app()->clientScript->registerScriptFile("../jquery.js");
        Yii::app()->clientScript->registerScriptFile("../jquery-ui/js/jquery-ui-1.10.4.js");
        Yii::app()->clientScript->registerScriptFile("../bootstrap/js/bootstrap.js");
        Yii::app()->clientScript->registerScriptFile("../script.js");
        ?>

</head>

<body>
<div class="container" id="page">
	<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-header ">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="index.php">Brand</a>
  </div>
  <div class="navbar-collapse collapse navbar-inverse-collapse">
    <ul class="nav navbar-nav">
      <li class=""><a href="index.php?r=site/Register">Register</a></li>
      <li><a href="#">Link</a></li>
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Member <b class="caret"></b></a>
        <ul class="dropdown-menu">
        <?php if (Yii::app()->session["user_id"] == "2"): ?>
          <li><a href="index.php?r=Members/admin">Admin</a></li>
          <?php endif ?>
          <li><a href="index.php?r=Members/index">Index</a></li>
          <li><a href="index.php?r=Members/create">Create</a></li>
          <li class="divider"></li>
          <li class="dropdown-header">Dropdown header</li>
          <li><a href="#">Separated link</a></li>
          <li><a href="#">One more separated link</a></li>
        </ul>
      </li>
    </ul>
    <form class="navbar-form navbar-left" >
      <input type="text" class="form-control col-lg-8" placeholder="Search">
    </form>
    <div style="padding: 0px 20px 0px 0px;">
    <ul class="nav navbar-nav navbar-right"  >
    <?php if (Yii::app()->session["user_id"] == null): ?>
      <li><a href="index.php?r=site/login">Login</a></li>
    <?php endif ?>
    <?php if (Yii::app()->session["user_id"] != null): ?>
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Settings <b class="caret"></b></a>
        <ul class="dropdown-menu">
          <li><a href="#">Action</a></li>
          <li><a href="#">Another action</a></li>
          <li><a href="#">Something else here</a></li>
          <li class="divider"></li>
          <li><a href="index.php?r=site/logout">Logout</a></li>
        </ul>
      </li>
    <?php endif ?>
      </ul>
    </div>
  </div>
</div>
<div class="col-md-10 col-md-offset-1" style="padding: 70px 0px 0px 100px;"> 
  

	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>


<div class="col-md-10 col-md-offset-1">


	<?php echo $content; ?>
</div>
	<div class="clear"></div>

<div>

<div class="col-md-10 col-md-offset-1" style="text-align:center;">
<br>
		Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
		</div>
	</div><!-- footer -->
</div><!-- page -->


</body>
</html>

